<template>
	<view class="root">
		<view class="item" v-for="item in list">
			<view class="time">
				{{item.time}}
			</view>
			<view class="adress">
				{{item.adress}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					time: '2022 - 10 - 10 11: 09',
					adress: '洛阳市道北路32号XXX小区'
				}, {
					time: '2022 - 10 - 10 11: 09',
					adress: '洛阳市道北路32号XXX小区'
				}, {
					time: '2022 - 10 - 10 11: 09',
					adress: '洛阳市道北路32号XXX小区'
				}]
			}
		},
		methods: {

		},
		onShow() {
			uni.request({
				url: "http://localhost:7000/business/couponReal/list?pageNum=1&pageSize=10&source=1",
				header: {
					Authorization: "Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX2tleSI6IjliYTA5NmJjLTVmMTgtNDU2OC1iZWM1LTViYjBlYjA3OGRhMCIsInVzZXJuYW1lIjoiYWRtaW4ifQ.BrXlK7n1aCAw5i3adeurT2pIdlMXUA7ByNmGbqML1J3Nc_CQXDgbDWn4n0qwOs3Cj4KwwUUcj3d5-wX2NjaRAQ"
				},
				success: (res) => {
					console.log(res);
				}
			})
		}
	}
</script>

<style>
	.root {
		height: 100%;
		padding-left: 20rpx;
		background-color: white;
	}

	.item {
		border-bottom: 2rpx solid #C3C3C3;
		padding-top: 20rpx;
		padding-bottom: 10rpx;
	}
</style>